<?php

moveColumn("table",3,0);

if (false) {
$workflowId=$currentObject->workflowid;



    $sSql="SELECT
portal_workflow_stage.id
FROM
portal_workflow_stage
WHERE
portal_workflow_stage.workflowId = $workflowId";

//echo $sSql."<br/>";


$objectName=getObjByKey("portal_objects","id","name","portal_workflow_stage");
$rs=$GLOBALS["conn"]->Execute($sSql);
while ( !$rs->EOF)  {
    $id=$rs->fields["id"];
    

?>

    <script type="text/javascript">
        $( "a[href='portal_credentialslist.php?showmaster=portal_workflow_stage&id=<?=$id?>']" ).attr("href","portal_credentialslist.php?objectName=<?=$objectName?>&objectId=<?=$id?>");
        
    </script>
<?php
$rs->MoveNext();
}
}
    ?>
